b7d5c2415d239ee7264f0de2b56a8c42d60dcd9e,core/languageDesign/editor/source/jetbrains/mps/nodeEditor/folding/CellAction_FoldAll.java,CellAction_FoldAll,execute,#EditorContext#,22

Before Change



  public void execute(EditorContext context) {
    EditorComponent component = context.getNodeEditorComponent();
    CollectionUtil.map(
    CollectionUtil.filter(((EditorCell_Collection) component.getRootCell()).dfsCells(), new Condition<EditorCell>() {
      public boolean met(EditorCell object) {
        return object.canBePossiblyFolded() && !object.isFolded();
      }
    }), new Mapper<EditorCell, Void>() {
      public Void map(EditorCell editorCell) {
        ((EditorCell_Collection)editorCell).fold();
        return null;
      }
    });
    EditorCell selectedCell = component.getSelectedCell();
    if (selectedCell.isUnderFolded()) {
      EditorCell cell = selectedCell;

After Change



  public void execute(EditorContext context) {
    EditorComponent component = context.getNodeEditorComponent();
    for (EditorCell cell : ((EditorCell_Collection) component.getRootCell()).dfsCells()) {
      if (cell.canBePossiblyFolded() && !cell.isFolded()) {
        ((EditorCell_Collection) cell).fold();
      }